import request from '@/utils/request'
const baseUrl = 'api2'
export default {
   
    updateProject(data) {
        return request({
            url:`${baseUrl}/project/updateProject`,
            method: 'post',
            data
        })
    },
    getProjectInfo(page,pageSize) {
        return request({
            url:`${baseUrl}/project/getProjectInfo`,
            method: 'get',
            params:{
                page,
                pageSize
            }
        })
    },
    // 修改接口
    saveProject(data) {
        return request({
            url:`${baseUrl}/project/saveProject`,
            method: 'post',
            data
        })
    },
    // 删除接口
    deleteProject(pid) {
        return request({
            url:`${baseUrl}/project/deleteProject/?pid=${pid}`,
            method: 'delete',
        })
    },
     // 删除接口
     deleteBatch(ids) {
        return request({
            url:`${baseUrl}/auth/batch`,
            method: 'delete',
            data:{
                ids
            }
        })
    },
   
}